package mahjong;

import java.util.ArrayList;
import java.util.Random;
/**
 * A player that randomly picks one of the available moves
 * 
 *
 */
public class RandomPlayer extends AIPlayer
{
	/**
	 * Pick a random move for the random player
	 */
	public Tile[] chooseMove()
	{
		ArrayList<Tile[]> aMoves = board.getAvailableMoves();
		return aMoves.get((int) Math.random() * (aMoves.size() + 1));		
	}
}
